package com.jpx.jxcbiz.service.impl;

import com.jpx.jxcbiz.entity.TCustomerReturnList;
import com.jpx.jxcbiz.mapper.TCustomerReturnListMapper;
import com.jpx.jxcbiz.service.ITCustomerReturnListService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mht
 * @since 2020-02-24
 */
@Service
public class TCustomerReturnListServiceImpl extends ServiceImpl<TCustomerReturnListMapper, TCustomerReturnList> implements ITCustomerReturnListService {


    @Autowired
    private TCustomerReturnListMapper tCustomerReturnListMapper;
    @Override
    public List<TCustomerReturnList> getGoodsRetureList(TCustomerReturnList tCustomerReturnList) {
        return tCustomerReturnListMapper.getGoodsRetureList(tCustomerReturnList);
    }

    @Override
    public List<TCustomerReturnList> getReturnGoodsById(Integer id) {
        return tCustomerReturnListMapper.getReturnGoodsById(id);
    }

    @Override
    public boolean deleteReturnById(int id) {
        return tCustomerReturnListMapper.deleteReturnById(id);
    }

    @Override
    public boolean deleteReturnGoodsById(int id) {
        return tCustomerReturnListMapper.deleteReturnGoodsById(id);
    }

    @Override
    public void insertReturnList(TCustomerReturnList returnList) {
        tCustomerReturnListMapper.insertReturnList(returnList);
    }


}
